package cn.itcast.feign.clients.fallback;

import cn.itcast.feign.clients.UserClient;
import cn.itcast.feign.pojo.User;

public class UserClientFallback /*implements UserClient*/ {
    /**
     * 服务降级的方法
     * @param id
     * @return
     */

    /*@Override
    public User findById(Long id) {
        User user = new User();
        user.setId(0L);
        user.setUsername("默认用户");
        user.setAddress("默认地址");
        return user;
    }*/
}
